package org.example.mapper;

import org.apache.ibatis.annotations.Param;
import org.example.domain.Employee;

import java.util.List;

public interface EmployeeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Employee record);

    Employee selectByPrimaryKey(Long id);

    List<Employee> selectAll();

    int updateByPrimaryKey(Employee record);

    Employee selByUserNameGetEmployee(@Param("username") String employeeUserName);

    Employee selByEmailGetEmployee(String email);
}